package com.tianhui.consignortwofei.role;

import android.os.Bundle;

import com.tianhui.consignortwofei.constant.KeyValue;
import com.tianhui.consignortwofei.constant.OrderType;
import com.tianhui.consignortwofei.mvp.ui.activity.DiaoDuOrderListActivity;
import com.tianhui.consignortwofei.mvp.ui.activity.FreightListActivity;
import com.tianhui.consignortwofei.mvp.ui.activity.OrderListActivity;
import com.tianhui.consignortwofei.mvp.ui.activity.PaymentListActivity;
import com.tianhui.consignortwofei.mvp.ui.activity.deliverGoods.lite.LiteDeliverGoodsActivity;
import com.tianhui.consignortwofei.utils.ApplicationUtil;

/**
 * @author fgs
 * @date 2021/6/3
 * @description 管理员
 **/
public abstract class BaseRole implements IRole {
    @Override
    public void deliverGoodsOperate() {
//        ApplicationUtil.openActivity(DeliverGoodsStepOneActivity.class);
        ApplicationUtil.openActivity(LiteDeliverGoodsActivity.class);

    }

    @Override
    public void sourceOperate() {
        Bundle bundle = new Bundle();
        bundle.putInt(KeyValue.KEY_TYPE, OrderType.TYPE_SOURCE);
        ApplicationUtil.openActivity(OrderListActivity.class, bundle);
    }

    @Override
    public void dispatchOperate() {
        Bundle bundle = new Bundle();
        bundle.putInt(KeyValue.KEY_TYPE, OrderType.TYPE_DISPATCH);
        ApplicationUtil.openActivity(DiaoDuOrderListActivity.class, bundle);
    }

    @Override
    public void freightOperate() {
        ApplicationUtil.openActivity(FreightListActivity.class);
    }

    @Override
    public void paymentOperate() {
        ApplicationUtil.openActivity(PaymentListActivity.class);
    }

    @Override
    public void manageSourceOperate() {
        Bundle bundle = new Bundle();
        bundle.putInt(KeyValue.KEY_TYPE, OrderType.TYPE_SOURCE);
        ApplicationUtil.openActivity(OrderListActivity.class, bundle);
    }

//    @Override
//    public boolean isShowOrderTypeTabLayout() {
//        return true;
//    }
//
    @Override
    public boolean isShowCarrierManageView() {
        return false;
    }
    @Override
    public boolean isShowStaticsView() {
        return false;
    }

    @Override
    public boolean isCarrierEditable() {
        return false;
    }


    @Override
    public boolean isShowBusinessView() {
        return false;
    }

    @Override
    public boolean isShowCustomerName() {
        return false;
    }

    @Override
    public boolean isShowPerfectData() {
        return false;
    }

    @Override
    public boolean isShowSalesMan() {
        return false;
    }

    @Override
    public boolean isNeedRequestAuditState() {
        return false;
    }

    @Override
    public boolean isCanTerminateDispatchOrder() {
        return false;
    }

    @Override
    public boolean isDispatchOrderShowVehicleNumber() {
        return false;
    }

    @Override
    public boolean isShowEditImage() {
        return true;
    }

    @Override
    public boolean isShowBelongArea() {
        return false;
    }
}
